package com.edu.schoolforum.dto;

import lombok.*;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @author tao
 * @date 2021/8/4 21:46
 */
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Validated
public class WebLoginDto {
    @NotNull(message = "用户名不能为空")
    private String name;
    @NotNull(message = "密码不能为空")
    private String password;
}
